package com.points.system.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("user_points")
public class UserPoints  implements Serializable {
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private Long userId;
    
    private Long points;
    
    private Long totalPoints;
    
    private Long usedPoints;
    
    private Long expiredPoints;
    
    @Version
    private Integer version;
    
    private LocalDateTime expireTime;
    
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdTime;
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedTime;
    
    @TableLogic
    private Integer deleted;
} 